import http from '@/utils/http'

/**
 * 获取学院列表
 */
export const getCollegeApi = async() => {
  return http.get('/api/major/college', null)
}

/**
 * 新增专业
 */
export const addMajorApi = async(param) => {
  return http.post('/api/major', param)
}

/**
 * 编辑专业
 */
export const editMajorApi = async(param) => {
  return http.put('/api/major', param)
}

/**
 * 删除专业
 */
export const deleteMajorApi = async(param) => {
  return http.delete('/api/major', param)
}

/**
 * 获取专业列表
 */
export const getMajorApi = async(param) => {
  return http.get('/api/major/list', param)
}
